Skip to content

fix: use DefaultObjectPoolProvider to get a DisposableObjectPool inst…#427

Merged
catcherwong merged 1 commit intodotnetcore:devfrom
sarmis:dev
Nov 24, 2022
Merged

fix: use DefaultObjectPoolProvider to get a DisposableObjectPool inst…#427
catcherwong merged 1 commit intodotnetcore:devfrom
sarmis:dev

Conversation

@sarmis
Copy link
Copy Markdown
Contributor

@sarmis sarmis commented Nov 24, 2022

Default object pool does not dispose non-retained objects, leading to IModel leakage. Using the DefaultObjectPoolProvider will result in getting a DisposableObjectPool that does dispose non-retained objects.

…ead of a DefaultObjectPool

Default object pool does not dispose non-retained object, leading to IModel leakage.
@catcherwong catcherwong self-requested a review November 24, 2022 13:34
Copy link
Copy Markdown
Member

@catcherwong catcherwong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@catcherwong catcherwong merged commit 23540d1 into dotnetcore:dev Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants